{include file="public/header"}

<style>
.inputs {
    height: 25px;
    line-height: 25px;
    padding: 0px 6px;
    border: 1px solid rgb(210, 210, 210);
    border-radius: 3px;
    margin-right: 9px;
    float: left;
    margin-top: 10px;
}
.btns {
    display: block;
    width: 80px;
    border-radius: 4px;
    height: 27px;
    text-align: center;
    line-height: 27px;
    color: #fff;
    background-color: #248ce6;
    cursor: pointer;
    float: left;
    border: none;
    margin-top: 10px;
}
</style>

<main class="outline" id="container">
<div class="main zoushi">
	<div class="zoushi_main">
		<div class="zoushi_header_nav">
			<div class="lotteryNav">
				<ul>
					<li class="liHead liDiv {if (!$uuid)}active{/if}" nid="0">
						<div class="headTitle">
							<a href="{:url('lottery/runLottery')}" style="color:#fff;">全部</a>
						</div>
					</li>
					{foreach $lotterys as $lottery}
					<li class="liDiv {if ($uuid eq $lottery.id)}active{/if}" >
						<div class="navTitle">
							<i>
								<img src="__TEMPLATE__/webfile/{$lottery.pic}" alt="" width="26px" height="26px">
							</i>
							<span>
								<a href="{:url('lottery/runLottery')}?uuid={$lottery.id}">{$lottery.class_name_lottery}</a>
							</span>
						</div>
					</li>
					{/foreach}
				</ul>
			</div>
			<div class="hideNav" style="display: block;">
				<ul>
				{foreach $kj_list as $k=>$kj}
					<li>
						  <a href="{:url('lottery/runLottery')}?uuid={$uuid}&czid={$kj.id}">
							<span id="false" {if condition="$kj.id eq $czid"}style="color:red;"{/if}>
								{if condition="$kj.cp_name_new eq ''" }
								{$kj.cp_name_old}
								{else /}
								{$kj.cp_name_new}
								{/if}
							</span>
						</a>
						{if(count($kj_list) neq ($k+1))}
						<em>|</em>
						{/if}
					</li>
				{/foreach}
				</ul>
			</div>
			
		</div>
	</div>
	<div class="zoushi_data" style="margin-top:0">
		<form action="{:url('Lottery/runLottery')}?uuid={$uuid}&czid={$czid}" method="post" enctype="application/x-www-form-urlencoded">
			<h1>
				<input type="text" placeholder="期号" name="qishu" class="inputs">
				<input type="submit" class="btns" value="确定">
				<a href="{:url('Lottery/runLottery')}?uuid={$uuid}&czid={$czid}&timebh=1" class="btns" style="margin-left: 30px">今日</a>
				<a href="{:url('Lottery/runLottery')}?uuid={$uuid}&czid={$czid}&timebh=2" class="btns" style="margin-left: 10px">昨日</a>
				<a href="{:url('Lottery/runLottery')}?uuid={$uuid}&czid={$czid}&timebh=3" class="btns" style="margin-left: 10px">前日</a>
			</h1>
		</form>
		<div class="data">
			<table class="table">
			<thead>
			<tr style="background-color:#eaeaea">
				<th>彩种</th>
				<th>期号</th>
				<th>开奖时间</th>
				<th>开奖号码</th>
				<th>走势</th>
				<th>购买彩票
	    </th>
			</tr></thead><tbody>

			{foreach $echo_kjjg_list as $k=>$kl}
			<tr>
				<td>
				{if condition="$kl.cp_name_new eq ''" }
					{$kl.cp_name_old}
				{else /}
					{$kl.cp_name_new}
				{/if}
				</td>
				<td>{$kl.qihao}</td>
				<td>{$kl.jztime}</td>
				<td>
					<div class="ballDivMain">
						<div class="ballDiv"><!-- ballDivLhc -->
						{if ($czid eq 9)}
							{foreach $kl.kjjg as $kk=>$kjjg}
								<div class="number_ball lhc_ball_{$kl.kjjg_color[$kk]}">
									<span>{$kjjg}</span>
									<!-- <div class="ball_sub">生肖</div> -->
								</div>
								{if (count($kl.kjjg) eq ($kk+2))}
								<div class="ballDiv"><div class="number_add">
									<span><i class="iconfont"></i></span>
								</div></div>
								{/if}
							{/foreach}
						{else /}
							{foreach $kl.kjjg as $kjjg}
								<div class="number_ball">
									<span>{$kjjg}</span>
								</div>
							{/foreach}
						{/if}
						</div>
					</div>
				</td>
				<!-- <td><a class="xq" onclick="window.location.reload();" href="#"><i class="iconfont">  </i></a></td> -->
				<td><a class="zs" onclick="window.location.reload();" href="{:url('Lottery/trend')}?czid={$czid}"><i class="iconfont">  </i></a></td>
				<td><a onclick="open_mall({$czid},{$kl.initial_class_id})" class="btn btn-radius btn-default">投注</a></td>
			</tr>
			{/foreach}
			
			</tbody>
			</table>
		</div>
	</div>
</div>
</main>

{include file="public/footer"}
